

var newer = newer || {};
newer.gd = newer.gd || {};

newer.PostsHelper = {
	showPost: function(post, containerId, options) {
		var displayPostContentClass = (options.displayPostContentClass)?options.displayPostContentClass:"";		
		var hidden = options.hidden || false;
		var hideStr = hidden ? "display:none;" : "";
		var linkClass = "post-" + post.id + "-author-" + post.authorid + "-link";
		
		$("#"+containerId).html("<div id='po" + post.id + "' class='display-post-class' style='"+hideStr+"'>"+ 
				'<div class="display-post-photo-class link-like-element '+linkClass+'"><img src="/Photos/displayUserPhoto?id='+post.authorid+'" width="50px" /></div>' +
				'<div id="post-content" class="display-post-content-class '+displayPostContentClass+'"><div class="display-post-content-name-class link-like-element '+linkClass+'">' + post.authorName + '</div>' +
				"<div class='display-post-content-date-class'>" + post.postDate + "</div>" + 
				//"<div>" + post.title + "</div>" + 
				//"<input type='button' value='Delete' class='dpo-class' id='dpo" + post.id + "'>" +
				"<div>" + post.content + "</div>" +
				"</div></div>");
		$("."+linkClass).on("click", function(event) {
			
		});
	}
};
